package com.midian.model.permission;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.midian.model.common.BaseModel;

/**
 * 角色
 * @author Mengfh
 *
 */
@Entity
@Table(name = "role")
public class Role extends BaseModel {
	
	private static final long serialVersionUID = 2002978444393503783L;
	/**父id（备用）*/
	private Integer parentId;
	/**角色名称*/
	private String name;
	
	/**角色绑定的权限id列表*/
	@Transient
	private List<String> authIdList;

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getAuthIdList() {
		return authIdList;
	}

	public void setAuthIdList(List<String> authIdList) {
		this.authIdList = authIdList;
	}
}
